package config

import (
	"context"
	"gitee.com/gin-demo/utils"
	"go.uber.org/zap"
)

type Ctx struct {
	ctx context.Context
	Log *zap.Logger
}

func NewZapCtx() *Ctx {
	logger, err := utils.NewZapLogger()
	if err != nil {
		panic(err)
	}
	return &Ctx{
		ctx: context.Background(),
		Log: logger,
	}
}
